package string;

/**
 *频繁修改字符串带来的性能损耗
 */
public class StringDemo2 {
    public static void main(String[] args) {
        String str = "a";
        for(int i = 0;i < 10000000;i++){
            str = str + "a";
        }
        System.out.println("执行完成");
    }
}